<link rel="stylesheet" href="{$Think.config.url_oss}/css/font-awesome.min.css" type="text/css" /> 
<div class="detail_foot clearfix">
    <notempty name="tags_detail">
        <div class="tagged_with">
            <span class="gray">标签：</span>
            <foreach name="tags_detail" item="row">
                <a target="_blank" class="button3 white" href="__APP__/{$table}/tag-{$row.name}">{$row.name}</a>
            </foreach>
        </div>
    </notempty>
    <if condition="$detail.is_original eq 1">
        <div class="declare"><span>声明：</span>本文为原创文章，如需转载，请注明来源<a href="http://www.sucaihuo.com">sucaihuo.com</a>并保留原文链接：<a href='http://www.sucaihuo.com/{$control}/{$id}.html'>http://www.sucaihuo.com/{$control}/{$id}.html</a></div>
    </if>    
    <!--    <div class="alipay">
            <strong>如果您觉得本文的内容对您的学习有所帮助，您可以扫描下面的二维码请我喝杯茶，感谢！</strong>
            <div class="alipay_img">
                <img src="{$Think.config.url_oss}/images/pay.jpg" alt="alipay转账">
            </div>
        </div>-->
    <div class="page_nav clearfix">
        <div class="next_page" title="下一篇">
            <notempty name="next">
                <a href="__APP__/{$table|getMtypeUrl}/{$next.id}.html" target="_blank">{$next.name}</a>
            </notempty>
        </div>
        <div class="pre_page" title="上一篇">
            <a href="__APP__/{$table|getMtypeUrl}/{$prev.id}.html" target="_blank">{$prev.name}</a>
        </div>

    </div>
    <include file="Ads:banner_comment" />
    <div class="comments">
        <div class="title">
            评论<span class="num_area">（<em class="comments_num" id="comments_num">{$comments_num}</em>）</span>
        </div>  

        <div class="comment_send clearfix">
            <div class="comment_avatar">
                <span class="userPic">
                    <img class='userPic avatar user_my_avatar' width="60" height="60" src="{$Think.config.url_oss}/images/avatar.jpg" alt="头像">
                </span>
                <font class="username"></font>
            </div>
            <div class="comment_sendPart" id='reply_0'>
                <textarea id="textareaComment" class="textarea_comment" name="content"  autocomplete="off"  data-default="发布评论" onblur="checkInputBlur($(this))" onfocus="checkInputFocus($(this));
                        if ($(this).val() != '发布评论')
                            $(this).css({'color': '#333'})">发布评论</textarea>
                <div class="btn_p clearfix">
                    <span class="comment_tip" id="comment_tip_0" data-top="11" data-foot="36"></span>
                    <button class="btn_subGrey btn" type="button" onclick="subcomment('{$id}', '{$mtype}', 0)">提 交</button>
                    <span class="emotion" tabindex="1" data-id='0'></span>
                </div>
                <p style="color:red;font-weight:bold">系统已开启自动识别垃圾评论机制，识别到的自动封号，下载出错或者资源有问题请联系全栈客服QQ {$Think.config.qq}</p>
            </div>
        </div>
        <div  class="comment_wrap" id="comment_wrap">
            <ul class="comment_listBox">
                <foreach name="comments" item="row">
                    <li class="comment_list clearfix" id="comment_{$row.id}" <if condition="$comments_num%10-1 eq $key or $key%10 eq 9">style='border-bottom:none'</if>>
                    <div class="comment_avatar">
                        <a class='userPic' href="{$row.uid|getSpaceUserUrl}" target="_blank"><img width="36" height="36" src="{$row.uid|getUserAvatar=###}" alt="{$row.uname}头像"></a>
                        <span class="grey">{$comments_num-$key-1|getNumName=###}</span>
                    </div>
                    <div class="comment_conBox">
                        <div class="comment_avatar_time">
                            <div class="time">{$row.addtime|tranTime}</div> {$row.uid|getUidUrl}
                        </div>
                        <div class="comment_conWrap clearfix">
                            <div class="comment_action"><a class="reply" onclick="reply_btn('{$row.id}')">回复</a> </div>
                            <div class="comment_con">{$row.content|getCommentContent}</div>
                        </div>
                        <div id='reply_{$row.id}' class='reply_area'>
                            <textarea  class="textarea_comment" name="content" autocomplete="off"></textarea>
                            <div class="btn_p clearfix">
                                <span class="comment_tip" id="comment_tip_{$row.id}" data-top="4" data-foot="29"></span>
                                <button class="btn_subGrey btn" onclick="subcomment('{$id}', '{$mtype}', '{$row.id}', 0)" type="button">提交</button>
                                <span class="emotion" tabindex="1" data-id='{$row.id}'></span>
                            </div>
                        </div>
                        <div class="blockquote_wrap">
                            <foreach name="row['sub']" key='key2' item='row2'>
                                <blockquote class="comment_blockquote">
                                    <div class="comment_floor">{$key2+1}</div>
                                    <div class="comment_conWrap clearfix">
                                        <div class="comment_con">
                                            {$row2.uid|getUidUrl}：
                                            <p>{$row2.pid_sub|getTan}{$row2.content|getCommentContent}</p>

                                        </div>
                                        <div class="comment_action_sub">
                                            <a class="reply" onclick="reply_btn('{$row2.id}')">回复</a>
                                        </div>
                                    </div>
                                    <div id="reply_{$row2.id}" class="reply_area">
                                        <textarea class="textarea_comment" autocomplete="off" name="content"></textarea>
                                        <div class="btn_p clearfix">
                                            <span id="comment_tip_{$row2.id}" class="comment_tip" data-foot="29" data-top="4"></span>
                                            <button class="btn_subGrey btn" type="button" onclick="subcomment('{$id}', '{$mtype}', '{$row.id}', '{$row2.id}')">提交</button>
                                            <span class="emotion" data-id="{$row2.id}" tabindex="{$row2.id}"></span>
                                        </div>
                                    </div>
                                </blockquote>
                            </foreach>
                        </div>
                    </div>
                    </li>
                </foreach>
            </ul>
            <if condition="$comments_num gt 10">
                <div class="pager" id="detail-page" data-id="{$id}" data-mtype='{$mtype}' data-totalnum="{$comments_num}">{$page}</div>
            </if>
        </div>
    </div>
</div>
<div class="smileBoxOuter" id="smileBoxOuter" tabindex="2">
    <ul class="smileBox">
        <foreach name="emots" item="row">
            <if condition="$key lt 44">
                <li><a href="javascript:void(0)" class="smile{$row.id}" title="{$row.name}"></a></li>
            </if>
        </foreach>
    </ul>
    <ul class="smileBox" style="display:none;">
        <foreach name="emots" item="row">
            <if condition="$key gt 44">
                <li><a href="javascript:void(0)" class="smile{$row.id}" title="{$row.name}"></a></li>
            </if>
        </foreach>
    </ul>
    <div class="smilePage">
        <a href="javascript:void(0)" class="current">1</a>
        <a href="javascript:void(0)">2</a>
    </div>
</div>    
<div id="download_box" class="modal fade window_box">
    <div class="pop_title">
        <div class="pop_name">{$detail.name}<if condition="$detail.is_original eq 1"> <span class="red">(原创)</span></if></div>
        <i class="pop_close" onclick="$('#download_box').modal('hide')"></i>
    </div>
    <div class="pop_content" style="padding:0 70px 0 70px">
        <div class="download_info">
            <i class="fa fa-btc"></i> 
            我的{$detail.points_type|getPaySymbol}余额：
            <span class="download_mymoney" id="download_mymoney">0</span>
            <i class="fa fa-download"></i> 已下载次数：
            <span class="download_times">{$detail.times_download}</span>   
        </div>
        <div class="download_btns clearfix">
            <span class="download_money" id="download_money">所需{$detail.points_type|getPaySymbol}：<span class="en money_del">{$detail.points}</span><span id="points_money" class="en"></span></span>
            <a href="javascript:void(0)" onclick="downloadZip('{$id}', '{$mtype}')" class="download_btn" id="download_btn"><i class="fa fa-download"></i> <span id='download_start' data-tip="开始下载">开始下载</span></a>  
        </div>
    </div>
    <div id="points_not_enough" class="alert alert-danger top20 dou2" role="alert" style="display: none">
        <i class="fa fa-frown-o"></i> 
        <span id="points_enough" >亲，{$detail.points_type|getPaySymbol}不够，
            <b>
                <if condition="$detail.points_type eq 1">
                <a href="__APP__/Member/pay#form_pay3" target="_blank" style="color: #24B900; font-size:17px">充值火币</a>
                <else/>
                 <a href="__APP__/Member/pay" target="_blank" style="color: #24B900; font-size:17px">在线充值</a>
                </if>
            </b>
            或联系QQ{$Think.config.qq}人工充值
        </span>
    </div>
        <div id="download_result" class="alert alert-danger top20 dou2" role="alert" style="display: none">
            
    </div>
    <div id="original_download_tip" class="alert alert-danger top20 dou2" role="alert" style="display: none">
        <i class="fa fa-smile-o"></i> 
        <span >亲，vip会员下载<strong>原创</strong>作品 积分<strong style='font-size:16px;'>5</strong> 折，其余免积分下载</span>
        <p>PS:尊重原创作者劳动成果，感谢分享！</p>
        <p>充值方式：<b><a href="__APP__/Member/pay" target="_blank" style="color: #24B900; font-size:17px">在线充值</a></b> 或联系QQ{$Think.config.qq}人工充值</p>
    </div>

</div>